started working on the API