use new signature of notify_failed