fix how headers sent back in response