tries to get event hooks to work