added preRestart option