added default session and removed bugs for openning sessions