fix mem leaks. turn off electric fence.