hack to avoid cmd2 bug