thread logger and network bugfixes merged