refactor routes files