fixed the tempfile fuckup