more correct temp file behaviour
middle of refactor for temp files
clean up the temp dir when finished
bump version