added checking of message integrity

all messages should contain end_line