refine the http-client creator