use runCmd method