added functions for making, updating, and loading session