remove FileLoader and refactor FileIO.