updated to send more headers