replaced httparty with httpclient