don't use tempDir and clean up properly