rewrite.json and fileinfo.json