fix issues in CommandIO