clean up hook_init func