drop frozendict and delete temp_d when done