batch_run improved