restruct scripts