change session->states from map to void**
change session->states from map to void**