removed unused session flag