replace refcounts with detailed list of all refs