change internal representation of routes