refactoring  FileSystemController