debug mode optimized