changed name to ref_by_offset, ref_by_first