update to use an event_base (remove deprecated libevent methods)