final refactoring of file path