get rid of some global leaks.