minirefactoring to find out what needs be done to run batches; tests still pass