fall back to Ruby socket programming