adding session logging