keep Tempfile in scope