stuff for the validator