added subscribe functions and started deprecating old notifications code