fixed uninitialized conditional jumps and leaks. Is stable at this point.