fixed the temporary file madness by plopping it all inside the temp dir