support for non-upstream,like ngx_lua