reconstruct file structure.