refactaring: main read file system