add an "assert" handler