update curl script