replaced curl with URL module