started to move restful calls from client into reusable services