tracked down some memory leaks