use curl instead of wget