add modes to cache_utils.py