added nssocket to the server