added ability to define custom headers