debug setting up the header