update scripts
bug in script