client api and service