ENH: Adding some warnings when bad stuff happens
BUGFIX: Swap global header at rank0 if needed