update to how batches are run