added protocol name validation