fixes after getting rid of ShellObj
move `localizedFlow` method into RichFlowDef as `onlyUpstreamFrom(pipe)`