updated for RouteCollection support
make it possible to limit the size of the dynamic RouteCollection