removed getListeners method as it was only needed for debug