add initial indexing functionality