add session factory