example using index pulled directly from exterminate
working version that doesn't handle new lines correctly