debuging user defined error handler