lots of fixes for chat room