made batch_type_t a scoped enum