error propagation through streams