add a safe_mode check