fixed the cache_path error and modified plotdata_run