socket initilization