minor fixes to cmd executable