a fix for new twisted library