refactor
sigh. remove libevent for centos54's sake