get index working, still figuring out other thangs