clean up the service API