mods to debug messages in header