switching listener to sub socket