extend error handling example