def METHOD_NAME(self, v):
    from lightning.app.core import LightningFlow, LightningWork
    _set_child_name(self, v, str(self._last_index))
    if self._backend:
        if isinstance(v, LightningFlow):
            LightningFlow._attach_backend(v, self._backend)
        elif isinstance(v, LightningWork):
            self._backend._wrap_run_method(_LightningAppRef().get_current(), v)
    v._name = f"{self.name}.{self._last_index}"
    self._last_index += 1
    super().METHOD_NAME(v)