moved the listeners and their attachments into the class structure