added main index to file