add safe_mode to remaining scripts