added socket creation and connection in main