added http logic to service