less repetitive handling of default headers