updated the api doc