More work on networking, unfinished

just committing since i won't have access to this machine.