incorporate refcounts