add new event hooks
minified version with sourcemap