originally from github.com/bulletproofnetworks/ngx_upstream_status.git