switch socket to sock