more work on new DFT stuff