add httpclient code