clean up the tmp mess