refactoring haproxy config