new script

TODO change setcode