debug flags used wisely