ensured headers are being sent correctly