not sure why we would need a tempfile here