fixed twisted 13.1.0 incompatibilities reported on #7