using curl instead of wget