set namespace in client hook