send fixed-size message length before variable-sized actual message
remove newline endings from outgoing messages
change protocol to send commands before each message