working with libevent2