added reference counting sanity checks