modify event_dispatcher.lua