working on chat
encaplsated what i think i need for chat