more flexible header configuration