update doc and script