rename ev_state to ev_loop