load schema only when validating