write on script run, and update doc