restore back lib/session/sessionfactory.js