added support for batch lookups across rows