support nested resources and routes