turned dft into a package so it can be imported easier