work on the api