modified session to use different, simpler method