added FatRecord.flatten()