added error event docs