routes configuration refactoring