added synchronized fetching of the HTTP response body