removed unused socket code