beginnings of the api