global header refactoring