use curl instead of wget, remember to pipe output to file