first draft of batch processing util