added generate goodbad to listerner to fix BAD/GOOD stuck