implement CommandBuilder::command method