Added debug messages
fixed the bug in /notifications