prepare for looking up active sessions as well as defined sessions