fixes #609 for load balancing configuration for gateway