add error report for undefined event handler