add command type attribute