changed wget to curl