argh! fixed a weird threading/memory corruption bug that's been bugging me for two days straight. but fixed it 12 hours too late.