added http communication