added import sys to socket_utils