got ref counting working for alt_set ids, didn't help any; added func_cut