beginnings of API server