fix protocol