deferred session factory initialization