use custom routeMap if provided