changed caching of fits to per-session