changes for use notifications as a cron task