minor adjust- rename main to index