try and isolate memory leaks