fix protocol var and doc