added demo_session functionality