split up high level opt and indexify