switched from wget to curl