fixed stats/caches declarations