client buffering and processing