added tracking in initsession for session logging