using headers passed into constructor