Network connection of messages remade

But bugs are everywhere