update http client and fix logging