nasty but working version of everything that's not networking