correct typos and standardize return message for unknown protocol elements