added session logging