writing batch one by one to be more in sync with batcher streaming interface
updating the levels