make setExtraHeaders() a private method to make this works.