add refcounts