proposed patch for error bubbling