catch and translate need_output from last subpipe