init ngx tools.