changed http client to request client