add error events