comment out registerevents