changed socket creation in Sender