messagesString is public