only send messages that are not empty