adds fns to pass stdout and stderr through to caller