now removes temp dir when done