protection for registerEvent