init and add httpclient dependency