added REST support