adding the muti-rooms version for chat