add indexer in versions and versions-all functions