core: keep module pipe state updated.