add cache management