added an escape condition to Routes