more corrections for the calling of dev_mode.  Just so you know if you add a conditional and only test one branch, you can't tell if it works for real