more bugs in script