initialize httpclient in constructor