change default values in run_cmd, extend an error message