some flagging work and continuum reduction debugging stuff