change some variable names
add msg_dict for CommunityStatistics