logging tempfiles bug