added compatibility with Zope2.12+