prepare for chat