adding REST ROUTE handling