bugfix for AjaxClient, add remote API definition.