replaced HTTP client to thread safe version