adds nested routes for polymorphism