store metadata in csv file