socket issues fix