moved http call to service