rework the network event system to be more stable