added session flush