replace CURL with URLfetch