have tempfile defined always