clean part of code UXSocket/UXConnect