vhook patch by (Charles Yates <charles dot yates at pandora dot be>)