the lifetime of notifications is now managed using smartpointer