updateindex and events