add file for debugging instrumentation
add tests to detect streams and throw