refactor file dir