check safe mode