added support to open files on the cache directory