route.type changed to route.routeType