initialized with tempdir