changed how index is read in from redis