finally found a working solution to check DNI