adjust scanner api.