add example error handling for notify