change socket connection to open-uri