properly instantiate session objects