buffer, transform, and re-stream