clean up gateway headers