fixed par file creation so they go to the temp directory not the working directory