added REST interface