disable debug output
fix counter