server memory leaks fixed