made httpclient a class variable