added stats cacheing