refactor messaging for discussions