switch from wget to curl