fixed breakage in hooks, cleaned up some more hook stuff, made init command work