refactoring papillonFile