changes for DFNFlow + corrections in JCFpm associated with the use of the never erase flag