fixed problems with http_client