fixes for tess cache