rewrit: bug fix to chat not posting. this may cause perf issues, revisit