fixed memory leaks and leader crashes
wip leaks
wip leaks