added the beginnings of an api