added first draft for API