fixed incompatibility with older versions of Twisted