added a bounded indexer (use -l in place of -d)