add a message by mode