pass full args to get_temp_dir