changed curl to take name 2nd arg