load routes refactoring