modify for haproxy to support tcp