bug fix for rest client to share http client