update to flat file output