manage in-memory messages post-sync better.
add getter for in-memory messages.