replaced wget call with curl