change agi command structure