re-adding message middleware to dist settings
merge conflict