adding socket connection