new script and bugs