adding checks on corrupted U_EMR_ENDPATH records
cleaner separation between pmf et pmf print