batch and queue work