changes for apropriate session logging