adding index plugin