updated to new error events