ensemble stats file writing