adding a bit of experimental batching code