migrate to xml based schema definition