update safe mode