Many bugfixes at networking