updating api service with abstracted api calls