add libevent
init Generator