[PATCH] added check to to commandObj before passing to checkedExecute