use runCmd method
Merge pull request #1 from regadas/master

use runCmd method