made the chat flags be FLAGS. made it possible to send messages