added sanity cache check