changed sd to inetSocket