starting to design the api