write meta file