merge sub/configs back into main config based on environment