new api for the validator