basecurve: write to files explicitly.