switch to httpclient