what about using `stream_is_local()` like we do elsewhere in the framework?