added flat file generator