added session base constructor