remove rarely useful debug hook, fix 64 bit issues