add start of index and base template