update script and docs