minor fixes in scripts