the text in a message should be accessible
use gson for input

the messages variable is so integrated that it is kept for now