updates to AutoBatch