externalize top routes