fix mock to not require caching