fix all the leaks!