more progress on dft api