add rotate flag to indexer