PatchAllocator wip