rename files from index.* to main.*