add error handling to notify()