generalized name checking on pkl input