added error handler to service methods