getIndex flexible, templates diversified