removing temp dir logic