modify global listener

more than one global listeners can be defined in this version