finish rewriting of http client code