added HookPermissions