added a whole bunch of code, pushing out notifications