switch from authz hook to filter hook