removed removeCacheFiles because it's with a bug