make distinct local scope socket variable