added socket connecttions