fixing tnrs names and behavior
adding flag indexes
adding flag indexes