script and doc