tested session restoration