networking and bugfixes