make the indexer macro work on single files