unified main_index.csv to fit needs in main
replaced while loop in main through manager handling