adding check for upstream.state, in case someone is running nginx-api with an old version of jeto