Fix listener detection
Fix logging to screen and ldetect framework