more work on batch integration