keep a reference to tempfiles so they don't get deleted