fix protocol mismatches