clean up the Http client implementation