added beginnings of REST API