added session stuff