changed from wget to curl