clean up hooks.rb