fixed DOMCache again, added instance counting