moved messages to appState