added checks to ensure only one session at a time is started