stub for cache

and some fixes