is there a reason the typedef of valmap is in eventmanager instead of event?