restructured getNotification

fixes #33 as important bugfix.