make error handler interface, call register