update API, debug search