added end of simulation persistend flag