minor tweaks to scripts