adding gateway and envconsul opts