some clean up; adds destructor to clean temp directory