fixing bug in fetching from dictionary.  refactoring get all messages to a property.