added session tracking