added protocols necessary for chat