ensure error stack reporting