NXP-11708: add observer on flush