fixing sessions helper