can you add an assert here to the effect that assert not stream log or stdin subprocess pipe  i think there are combinations of arguments that will make that make that false and lead to weird behavior below 