update api for extension.