modify run_mode