accept cache_dir argument to process