update headers as well