export metadata in file