move debugging into state, on a per-state basis.