Rewrite some files