better REST support