changed format for creating temp directories