update coevent module and recode Lua bind