wip adding register_allocator v3