initialize libevent earlier