bugs in new script