use libevent to make the network module funcational