add simple indexing #1

very imperfect with addition of more metadata instead of less metadata, but hopefully we can get rid of that shortly