update events at runtime