updated socket listening