update session factory