refactored to use default routes and resources