cleaning up httpclient usage