extract the setListeners