moved network stuff away from the main thread.
protocol/ui changes