fix socket.get - deprecated in version 1.x