converted index to use yaml file