first version of schema validation