added a simple REST interface