change to one socket and main connection