src: fixed bugs for notifications + debug outout