split incoming messages at newline characters