revamping twodee. Didn't realize how bad a lot of it was...