use tempfile for drive in preliminary tests
add missing bit from license header