started first draft of API