use curl instead of wget for fetching http stuff