also print impulse changes and use DBG instead of cout