move http requests to service