refactor get_heaps init_config get_user_allocations