refactor file directory