indexes, fixed session bug