implemented cache trimming methods
using typeof in select locations
commented out some debug logic
removeAllObjs
conflict res