did some work to add support for a proper http client