added support for multiple socraticqs sessions