refactor scope routes