add libevent to control socket read