started working on the api