rename to rerouteAllSegments