run_safe.py add_cmd updated