add new saveonexit option