toolbox scripts refactor.