changed httpclient implementation, added abbility to handle log messages