make alloc_ref_from_str() the new alloc_ref()