hopefully this fixes leaks