fix issues with sess