Build the connection config stack explicitly, fix a bug where the environment config was appearing at the beginning.