better handling of parameter inheritance in routers