trying to use pwr_en to control a_det. WIP