cleaning debug flags