Some logger work
Some flags guesswork and better reset

Fixes a prod that wasn't working at all.