new and revoke hooks added