add setHeaders support