corrected sessions issue with endpoints