so this whole block would be hidden in write_global_header()