control streams with pause and resume