add httpclient class (not finished)