several changes in ValidatorFactory: use libraries, use terser language constructs