simplify setHeaders