got some indexing stuff working