added sessionmaker fix