working. did a bunch of memory/performance tests and hopefully put the code back in the same state as i found it. at least all the tests run.