first attempt at using httpclient