using wget instead of curl