minor fixes to pscmd