updated the export command to deal with the new fields