import some of the DPLL cascading code,should decrease power use if it works