added basic notification generation code