some bugfixes in the lowlevel networking code
some bugfixes in the lowlevel networking code