change to apache httpclient