adding check for socket sync