small cleanups in scripts