fixes in scripts