script to output finetuning data (fix)
minor updates