adapted to Impacket r1125 changes