first implementation of a service api