revert output_tcp changes