corrected socket issues