update CommandType