remove warnings PDB, null ptr checks and add print of ENUM