add global context and client pool