implented notification, enhanced on error action