modifies client to work with any http client