improve protocol setting