added blocknotify functionality