cliend needs to use global_hooks_ctx too.