fixed up socket code