chat buffering and session check