don't trigger debug-iterator asserts
fix failed node ID counter. flush stdout when logging