rewrite file system