replace curl with wget