changed to use curl from wget