added http client and logging