holy crap, this is some old code.