simplified temp_dir