modify from wget to curl