httpClient bugfixes