changes made to add a REST interface