socket creation corrected