[environments] dup() the gateway for config, just in case