another try to handles the notification in a separate thread