added {_index} for templates