got rid of caching setHeaders