work on the api client