improving connection messages between node and server