change safe mode to toggle