re-using http client

fixing a bug of multiple http client creation instead of single instance
re-use.