fixed listener script