r1575 modify CellID, BCflag output