some tweaks to the scripts