moved devReg section up.