setHeaders now using application