initialise httpclient with args