update index, add some dynamic templates