fixes in script