fix some lengths in network code
merge stash stuff...
fix really bad crashes