update doc and api