initial commit of npi checking code