made it easier to save, restore and create sessions