refactor scripts