minor patch for naming output flat files