Trying a tempfile instead

True fix.  will test on jenkins