change implementation in cenit, now we use event and flow