defined move_to_cache
added cache_dir method