added session control