fix typo, add xsd validation