added tempDir.path method