socket connection working