remove getEventPid (inlined)
move ExtensionUtils to util.events