assorted streaming work/cleanup