misc bugfixes related to notifications and tasks