simplification of http client