adding index control from cmd line