https://talentyab.com/blog/detail.php?title=how-to-work-with-a-bad-listener