modified sessions helper