setup command structure for handlers