adding on error notification