refactored haproxy configuration