session preparation