working on ref_counting for alt_set ids