updated script/tool and docs