chaged curation code to output raw datafile by default