before adding httpclient