refactor Enums of the Script class