update coevent module & fix timeout function