optional callback for cmdHandler defaultHandle