adding REST support
small fix