on debug == True use a different header