implemented addLuaEventHandler and addEventHandler