changed session factory class