scan command structure