use peek-stream