Options editing
added clear-index option