minor text file refactoring