further tweaks to curves scripts