add index search to cmd line