tidy
fix issue with secondary loopbacks
remove debug
improvements