new script

TODO change Setcode