major bug: avoid making content salad by inverting incoming and buffered data while reading a line