WIP read batching. get compilation/tests working