call installHooks