tweaks to script